package com.xfcy.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xfcy.blog.entity.Menu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 系统管理-权限资源表 (Menu)表数据库访问层
 *
 * @author 晓风残月Lx
 * @since 2023-04-09 11:03:05
 */
@Repository
public interface MenuMapper extends BaseMapper<Menu> {

    /**
     * 返回一个账号所拥有的权限码集合
     * @param loginId
     * @return
     */
    List<String> getMenuByUserId(@Param("loginId") Object loginId);
}

